﻿using Microsoft.AspNetCore.SignalR;
namespace WebApplication2.Hubs
{    public class ChatHub : Hub
    {
        public static string p1 = "p1";
        public async Task SendMessage(string user, string message)
        {
           
            await Clients.All.SendAsync("ReceiveMessage", user,message+"后台数据"+p1);
           
        }
    }
}
